<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>stapes例子15</title>
    <script type="text/javascript" src="../lib/stapes-0.8.1/stapes.js"></script>
    <script type="text/javascript" src="../lib/jquery-easyui-1.4.2/jquery.min.js"></script>
</head>
<body>
<h1>你好!!!</h1>

<div id="app">11111</div>


<script type="text/javascript">
    var module = {};
    Stapes.mixinEvents(module);

    module.on('sing', function() {
        console.log("i'm singing!");
    });

    module.sing = function() {
        this.emit('sing');
    }

    module.sing(); // i'm singing!
</script>


</body>
</html>